package com.chuangfeng.building.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TMsRole entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_ms_role")
public class TMsRole implements java.io.Serializable {

	// Fields

	private Integer msRoleId;
	private String roleName;
	private String description;
	private String creator;
	private Integer creatorId;
	private Date createTime;
	private Short isSystem;
	private Integer status;

	// Constructors

	/** default constructor */
	public TMsRole() {
	}

	/** full constructor */
	public TMsRole(String roleName, String description, String creator,
			Integer creatorId, Date createTime, Short isSystem, Integer status) {
		this.roleName = roleName;
		this.description = description;
		this.creator = creator;
		this.creatorId = creatorId;
		this.createTime = createTime;
		this.isSystem = isSystem;
		this.status = status;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "msRoleId", unique = true, nullable = false)
	public Integer getMsRoleId() {
		return this.msRoleId;
	}

	public void setMsRoleId(Integer msRoleId) {
		this.msRoleId = msRoleId;
	}

	@Column(name = "roleName", length = 20)
	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	@Column(name = "description", length = 500)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "creator", length = 20)
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "creatorId")
	public Integer getCreatorId() {
		return this.creatorId;
	}

	public void setCreatorId(Integer creatorId) {
		this.creatorId = creatorId;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createTime", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "isSystem")
	public Short getIsSystem() {
		return this.isSystem;
	}

	public void setIsSystem(Short isSystem) {
		this.isSystem = isSystem;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}